<?php
$strIdUnidad = $_REQUEST['strIdUnidad'];
print "nuevo contenido $strIdUnidad";
?>
<?php
include("adodb5/adodb-exceptions.inc.php");
include('adodb5/adodb.inc.php');

$strDsn = 'mssql://sa:123456789@DESARROLLOWEB\SQLEXPRESS/master';

$cnn = ADONewConnection($strDsn);
$cnn->SetFetchMode(ADODB_FETCH_ASSOC);

if($cnn)
{
//
	$strSql = 'SELECT * FROM influenza.dbo.usuarios ORDER BY id_principal DESC';

	$rs = $cnn->Execute($strSql);
	
	if($rs)
	{
	//
		$intNoRows = $rs->RecordCount();
		
		if($intNoRows > 0)
		{
		//
			while(!$rs->EOF)
			{
			//
				$rs->FetchInto($arrCurrentRow);
				print("{$arrCurrentRow['id_principal']}");
			}
			
		} else {
		//
		}
		
		$rs->Close();
		
	} else {
	//
		print "rs fail";
	}
	
	$cnn->Close();
	
} else {
//
	print "fail";
}

?>